package com.chukun.flink.stream.action.fraud.rules.major;

import com.chukun.flink.stream.action.fraud.config.Config;
import com.chukun.flink.stream.action.fraud.config.Parameters;
import org.apache.flink.api.java.utils.ParameterTool;

/**
 * @author chukun
 * @version 1.0.0
 * @description 主程序入口
 * @createTime 2022年05月22日 11:18:00
 */
public class MainRunner {

    public static void main(String[] args) throws Exception {
        ParameterTool tool = ParameterTool.fromArgs(args);
        Parameters inputParams = new Parameters(tool);
        Config config = new Config(inputParams, Parameters.STRING_PARAMS, Parameters.INT_PARAMS, Parameters.BOOL_PARAMS);
        RulesEvaluator rulesEvaluator = new RulesEvaluator(config);
        rulesEvaluator.run();
    }
}
